<script type="text/html" template
        lay-url="{{ window.globalConfig.url_jobPosition + '/' + layui.router().search.id }}"
        lay-done="layui.data.done(d);">
    <title>详情</title>

    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">
                        <a href="javascript:history.back()"
                           class="layui-btn layui-btn-primary layui-btn-sm" id="goBack">返回上级</a>
                    </div>
                    <div class="layui-card-body">
                        <div class="layui-form" lay-filter="LAY-home-jobposition-listform"
                             id="LAY-home-jobposition-listform"
                             style="padding: 20px 30px 0 0;">

                            <div class="layui-tab layui-tab-brief">
                                <ul class="layui-tab-title">
                                    <li class="layui-this">基础信息</li>
                                </ul>
                                <div class="layui-tab-content">
                                    <!-- 基础信息 -->
                                    <div class="layui-tab-item layui-show">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">岗位名称</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="name" value="{{ d.data.name || '' }}"
                                                       lay-verify="required"
                                                       placeholder="请输入招聘岗位名称" autocomplete="off"
                                                       class="layui-input"
                                                >
                                            </div>
                                        </div>
<!--                                        <div class="layui-form-item">-->
<!--                                            <label class="layui-form-label">岗位类型</label>-->
<!--                                            <div class="layui-input-inline">-->
<!--                                                <input type="text" name="join_time" value="{{ d.data.join_time || '' }}"-->
<!--                                                       lay-verify="required"-->
<!--                                                       placeholder="请输入岗位类型" autocomplete="off"-->
<!--                                                       class="layui-input"-->
<!--                                                >-->
<!--                                            </div>-->
<!--                                        </div>-->
<!--                                        <div class="layui-form-item">-->
<!--                                            <label class="layui-form-label">学历要求</label>-->
<!--                                            <div class="layui-input-inline">-->
<!--                                                <input type="text" name="education" value="{{ d.data.education || '' }}"-->
<!--                                                       lay-verify="required"-->
<!--                                                       placeholder="请输入职位" autocomplete="off" class="layui-input"-->
<!--                                                >-->
<!--                                            </div>-->
<!--                                        </div>-->
<!--                                        <div class="layui-form-item">-->
<!--                                            <label class="layui-form-label">地址</label>-->
<!--                                            <div class="layui-input-inline">-->
<!--                                                <input type="text" name="address" value="{{ d.data.address || '' }}"-->
<!--                                                       lay-verify="required"-->
<!--                                                       placeholder="请输入地址" autocomplete="off" class="layui-input"-->
<!--                                                >-->
<!--                                            </div>-->
<!--                                        </div>-->
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">第三方地址</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="link" value="{{ d.data.link || '' }}"
                                                       placeholder="请输入地址" autocomplete="off" class="layui-input"
                                                >
                                            </div>
                                        </div>

                                        <div class="layui-form-item">
                                            <label class="layui-form-label">排序</label>
                                            <div class="layui-input-inline">
                                                <input type="number" name="sort_order" lay-affix="number" min="0"
                                                       value="{{ d.data.sort_order | 1 }}"
                                                       placeholder="请输入排序"
                                                       autocomplete="off"
                                                       class="layui-input">
                                            </div>
                                        </div>
                                        <!--  招聘内容  -->
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">职责描述</label>
                                            <div class="layui-input-inline" style="width: 100%">
                                                <div id="content-editor"></div>
                                            </div>
                                        </div>

                                        <!-- 任职资格 -->
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">任职资格</label>
                                            <div class="layui-input-inline" style="width: 100%">
                                                <div id="content2-editor"></div>
                                            </div>
                                        </div>

                                    </div>
                                </div>
                            </div>


                            <!--        <input type="hidden" name="content" id="editor-content" value="{{ d.params.content }}">-->
                            <input type="hidden" name="id" value="{{ d.data.id }}">
                            <div class="layui-form-item">
                                <label class="layui-form-label"></label>
                                <div class="layui-input-inline">
                                    <input type="button" lay-submit
                                           lay-filter="LAY-home-jobposition-listform-submit"
                                           value="保存"
                                           class="layui-btn">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</script>
<script src="res/modules/jobposition.js"></script>
